<template>
  <div class="footer">
    <div class="footerbox wrap">
      <div class="leftbox">
        <img src="@/assets/images/slogan.7730f7f2.png" />
        <p>
          叩丁狼是一家专注于培养高级IT技术人才，为学员提供定制化IT职业规划方案及意见咨询服务的教育科技公司，为您提供海量优质课程，以及创新的线上线下学习体验，帮助您获得全新的个人发展和能力提升。
        </p>
      </div>
      <div class="middlebox">
        <ul>
          <li><a href="#">微信公众号</a></li>
          <li><a href="#">新浪微博</a></li>
          <li>
            <a href="#" @mouseleave="imgIsShow=false" @mouseenter="imgIsShow=true">在线客服</a>
            <img src="@/assets/images/wx.5584e874.png" v-show="imgIsShow"/>
          </li>
        </ul>
      </div>
      <div class="rightbox">
        <div>
          <p>全国免费咨询热线：</p>
          <p>020-85628002</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Footer",
  data(){
    return {
      imgIsShow:false
    }
  }
};
</script>

<style lang="less" scoped>
.footer {
  width: 100%;
  height: 240px;
  background: #242b39;
  .footerbox {
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0 auto;
    .leftbox {
      width: 426px;
      color: #7d879a;
      img {
        display: block;
        margin-bottom: 27px;
      }
      p {
        font-size: 12px;
        font-weight: 400;
        line-height: 18px;
      }
    }
    .middlebox {
      flex: 1;
      padding-top: 30px;
      ul {
        width: 293px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        li {
          position: relative;
          a {
            text-decoration: none;
            color: #7d879a;

            &:hover {
              color: #fff;
            }
          }

          // li除了最后一个元素
          &:not(:last-child)::after {
            content: "";
            width: 2px;
            height: 19px;
            background-color: #7d879a;
            position: absolute;
            right: -20px;
            top: 0;
          }

          img {
            position: absolute;
            right: 0;
            top: -109px;
            transform: translateX(16px);
          }
        }
      }
    }
    .rightbox {
      padding-top: 10px;
      p:nth-of-type(1) {
        font-size: 14px;
        color: #7d879a;
      }

      p:nth-of-type(2) {
        font-size: 28px;
        font-weight: bold;
        color: #fff;
      }
    }
  }
}
</style>